Remove support for `editorconfig-exclude-*`
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 17 Jun 2024 15:02:34 +0000 (11:02 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 Jun 2024 18:38:31 +0000 (14:38 -0400)
commitc5d86db81173100bd0303cfb2066b1a0319c2caa
tree9a8f2500c50a40012e8312fc30c52208846aa39e
parent8cfa6fe80128da62d28da37c5baedd201b796bb8
Remove support for `editorconfig-exclude-*`

When using the new hook, we can't support `editorconfig-exclude-modes` for
the `charset` property.  Also there are already other ways to get
similar effects (e.g. setting `auto-coding-alist` or
`enable-dir-local-variables`), so it's not clear those configurations
will be needed in Emacs-30.

* lisp/editorconfig.el (editorconfig-exclude-modes)
(editorconfig-exclude-regexps): Remove custom vars.
(recentf): Remove workaround (presumably not needed thanks to the fix
to issue #246).
(editorconfig--disabled-for-filename)
(editorconfig--disabled-for-majormode): Delete functions.
(editorconfig--advice-find-file-noselect): Remove call to those functions.
(editorconfig-mode): Adjust docstring accordingly.

* lisp/editorconfig-tools.el (editorconfig-apply): Adjust accordingly.
lisp/editorconfig-tools.el
lisp/editorconfig.el